package com.nova.scenic.projectlibs.util.lifecyclehelper;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by scenic on 16/6/2.
 */
public interface FragmentLifeCycleHelper  {

    void onAttach(Context activity);
    void onAttach(Activity activity);
    void onDetach();



    void onViewStateRestored(@Nullable Bundle savedInstanceState);

    void onSaveInstanceState(Bundle outState);
    void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo);
    void onCreateOptionsMenu(Menu menu, MenuInflater inflater);

    void onViewCreated(View view, @Nullable Bundle savedInstanceState);
    void onLowMemory();

    void onDestroyView();
    void onActivityCreated(Bundle savedInstanceState);
    View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState);
    void onDestroyOptionsMenu();
}
